﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NiconicoAPI;

namespace RateCounterAPI {
    class Point {
        internal bool IsSuccess { get; private set; }
        internal Comment Comment { get; private set; }
        internal double Score { get; private set; }
        private Point(bool issuccess, Comment comment, double score) {
            IsSuccess = issuccess;
            Comment = comment;
            Score = score;
        }
        internal static Point Parse(Comment comment) {
            double value;
            var issuc = double.TryParse(comment.Text, out value);
            return new Point(issuc, comment, value);
        }
    }
}